/**
 * Verschiedene "Quadrate" mit X'en zur Übung von Schleifen
 * 
 * @author henry@freye.de
 *
 */
public class TestSchleifen {

	/**
	 * @param args wird nicht ausgwertet 
	 * 
	 */
	public static void main(String[] args) {
		int a = 4;
		int b = 5;
		System.out.println("-- Nr. 1a --");
		for (int i=0; i < a; i++){
			System.out.print(i);
		}
		System.out.println(":"+a);
		System.out.println("---");
		//--------------------------------
		System.out.println("-- Nr. 1b --");
		for (int z=1; z <= a; z++){
			for (int s=0; s < b; s++){
				System.out.print(z);
			}
			System.out.println('#');
		}
		System.out.println("---");
		//--------------------------------
		System.out.println("-- Nr. 1c --");
		for (int z=1; z <= a; z++){
			System.out.println('#');
		}
		for (int s=0; s < b; s++){
			System.out.print(s);
		}
		System.out.println("---");
		System.out.println("---");
		//--------------------------------
		System.out.println("-- Nr. 1d --");
		for (int zeile=1; zeile <= b; zeile++){
			for (int spalte=1; spalte <= a; spalte++){
				if (spalte >= zeile){
					System.out.print(".");
				}else{
					System.out.print(spalte);
				}
			}
			System.out.println("");
			//eine Zeile zu Ende 
		}
	}//end of main
}//end of class
